<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="__CONTROLLER_VIEW__/css/list.css"/>
		<script src="__STATIC__/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var APP = "{|U:'Index/List/ajaxLike'}"
		</script>
		<script src="__CONTROLLER_VIEW__/js/list.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!--头部固定区-->
		<include file="__VIEW__/Common/header"/>
		<!--产品分类-逛商品begin-->
		<div id="category">
			<div class="c_title"><span class="s"><h2 <if value="$_GET['cid'] eq 6 or $_GET['cid'] eq 9 or $_GET['cid'] eq 25">style="letter-spacing:2px"</if>>{$topCate.cname}<i class="ico"></i></h2></span></div>
			<!--展示所有隐藏导航-->
				<div class="nav_all">
					<ul>
						<li class="li00"><i class='down_ico'></i><a href="{|U:'Index/List/allCate'}">所有分类</a></li>
						<foreach from="$cateTopAll" key="$k" value="$v">
						<li class="li{$k}"><i class='down_ico'></i><a href="{|U:'Index/List/index',array('cid'=>$v['cid'])}">{$v.cname}</a></li>
						</foreach>
					</ul>
				</div>
			<div class="c_content">
				<!--分类begin-->
				<foreach from="$navCate" key="$k" value="$v">
				<div class="c_box box{$k} c_box_cid{$topCate.cid}">
					<dl>
						<dt>
							<a href="{|U:'Index/List/index',array('cid'=>$v['cid'])}">{$v.cname}</a>
							<br />
							<i class="iconfont">&#xf00a9;</i>
						</dt>
						<dd>
							<list from="$v['son']" name="$n" row="5" >
							<a href="{|U:'Index/List/index',array('cid'=>$n['cid'])}" <if value="$n['cid']==$hd.get.cid">class="selected"</if> >{$n.cname}</a>
							</list>
						</dd>
					</dl>
				</div>
				</foreach>
				<!--分类end-->
			</div>
		</div>
		<if value="isset($param)">
		<!--筛选begin-->
		<div id="select">
			<div class="se_box">
				<div class="se_cont">
					<foreach from="$attr" key="$k" value="$v">
					<dl>
						<dt>{$v.name}：</dt>
						<dd>
							<?php 
								//param赋值给临时变量，保存param不被改变
								$temp = $param;
								//不限做处理
								$temp[$k] = 0;
							 ?>
							<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],param=>implode('_',$temp))}" <if value="$param[$k]==0">class="a_selected"</if>>不限</a>
							<foreach from="$v['value']" key="$kk" value="$vv">
							<?php 
								$temp[$k] = $vv['gaid'];
							 ?>
							<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],param=>implode('_',$temp))}" <if value="$param[$k]==$vv['gaid']">class="a_selected"</if>>{$vv.gvalue}</a>
							</foreach>
						</dd>
					</dl>
					</foreach>
				</div>
				<!--更多-->
				<div class="more"><span>更多+</span></div>
			</div>
		</div>
		<!--筛选end-->
		</if>
		<!--产品分类-逛商品end-->
		<!--页面主体区域begin-->
		<!--产品列表begin-->
		<div id="list">
			<div class="l_title">
				<h2>{$cateDatas.cname}</h2>
				<if value="isset($param)">
				<?php
					//Q中如何加了默认参数0，则会认为这个参数时一个数字，会把字符串转化为数字
					
					$screen = implode('_',$param);
					
				 ?>
				<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],param=>$screen,'order'=>0)}" <if value="$_GET['order']==0">class="choose"</if> >推荐</a>
				<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],param=>$screen,'order'=>1)}" <if value="$_GET['order']==1">class="choose"</if> >最新</a>
				<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],param=>$screen,'order'=>2)}" <if value="$_GET['order']==2">class="choose"</if> >最热</a>
				<else/>
				<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],'order'=>0)}" <if value="$_GET['order']==0">class="choose"</if> >推荐</a>
				<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],'order'=>1)}" <if value="$_GET['order']==1">class="choose"</if> >最新</a>
				<a href="{|U:'Index/List/index',array('cid'=>$_GET['cid'],'order'=>2)}" <if value="$_GET['order']==2">class="choose"</if> >最热</a>
				</if>
				<span class="t_dot"></span>
			</div>
			<?php 
				if(!isset($listData)) echo "<div class='error'><h3>亲~~~暂无此商品/(ㄒoㄒ)/~~</h3></div>"
			 ?>
			<foreach from="$listData" key="$K" value="$v">
			<div class="product">
				<a href="{|U:'Index/Product/index',array('cid'=>$v['category_cid'],'gid'=>$v['gid'])}" class="p_img"><img src="__ROOT__/{$v.picture}"/></a>
				<div class="p_infor">
					<div class="p_price"><span class="sp">¥{$v.shopprice}</span><span class="dis_like"></span><span class="like" gid="{$v['gid']}"></span><div class="pp"><p class="count"><span class="c">{$v.likes}</span><span class="add1">+1</span></p></div></div>
					<a href="" class="p_name">{$v.bname}</a>
					<a href="{|U:'Index/Product/index',array('cid'=>$v['category_cid'],'gid'=>$v['gid'])}" class="tag1">{$v.gvalue.0}</a><span class="dot"></span><a href="{|U:'Index/PUBLIC/index',array('gid'=>$v['gid'])}" class="tag2">{$v.gvalue.1}</a>
				</div>
			</div>
			</foreach>
		</div>
		<!--产品列表end-->
		<!--页面主体区域end-->
		
		<!--页面底部begin-->
		<div id="footer">
			<div class="foot_wrap">
				<div class="say">
					<p class="p1">“如果你的东西和大家都一样，那干嘛还设计它？”</p>
					<p class="p2">by  Philippe Starck</p>
				</div>
				<div class="foot_logo"></div>
				<p class='infor'>Copyright 2015 版权所有 浙ICP备12027496 <a href="">热门精选</a> <a href="">热门分类</a></p>
				<p class='link'>商务合作  友情链接： 想去网  蘑菇街 360安全网址 爱图购</p>
			</div>
		</div>
		<!--页面底部end-->
	</body>
</html>
